package com.cl.security.base.controller;

import com.cl.security.base.service.TreeService;
import com.cl.security.common.result.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;

public class TreeController<Entity,Service extends TreeService>
        extends BaseController<Entity,Service>{

    private final Service service;
    public TreeController(Service service, Class<?> clazz) {
        super(service, clazz);
        this.service = service;
    }
    @Override
    @GetMapping("list")
    public CommonResult list() {
        return service.listTree();
    }
}
